Skip to content

feat(install): add broadcasting support#6

Merged
anilcancakir merged 3 commits intomasterfrom
feature/broadcasting-install
Apr 5, 2026
Merged

feat(install): add broadcasting support#6
anilcancakir merged 3 commits intomasterfrom
feature/broadcasting-install

Conversation

@anilcancakir
Copy link
Copy Markdown
Contributor

Summary

  • Add --without-broadcasting flag to install command with config/broadcasting.dart stub (Reverb + null connections)
  • Make broadcasting env vars (BROADCAST_CONNECTION, REVERB_*) conditional — only generated when broadcasting is enabled
  • Bump version to 0.0.1-alpha.4

Test plan

  • All 399 tests pass (flutter test)
  • New --without-broadcasting test group (4 tests: file skip, provider exclusion, config import exclusion, env var exclusion)
  • Updated config count tests (7→8 default, 5→6 combined flags)
  • Default install asserts broadcasting env vars present in .env
  • dart format, flutter analyze, dart pub publish --dry-run all clean

Add --without-broadcasting flag to install command, broadcasting config
stub with Reverb connection, and conditional BROADCAST_CONNECTION/REVERB_*
env vars that are only generated when broadcasting is enabled.
Copilot AI review requested due to automatic review settings April 5, 2026 21:29
@sentry
Copy link
Copy Markdown

sentry bot commented Apr 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds optional broadcasting scaffolding to the install command, including a new config/broadcasting.dart stub and conditional generation of broadcasting-related .env keys.

Changes:

  • Introduces --without-broadcasting to skip broadcasting config, provider registration, config import/factory, and env vars.
  • Adds a new broadcasting config stub (Reverb + null connections) and updates install tests/docs accordingly.
  • Bumps package version to 0.0.1-alpha.4 and updates the changelog.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/commands/install_command_test.dart Updates config-count expectations and adds a new test group covering --without-broadcasting behavior and env var inclusion/exclusion.
README.md Documents the new --without-broadcasting flag and generated broadcasting.dart config file.
pubspec.yaml Version bump to 0.0.1-alpha.4.
lib/src/stubs/install_stubs.dart Adds broadcasting config stub loader and makes .env / .env.example broadcasting keys conditional.
lib/src/commands/install_command.dart Adds CLI flag handling and conditionally writes/imports broadcasting config + provider and env vars.
CHANGELOG.md Adds 0.0.1-alpha.4 release notes.
assets/stubs/install/broadcasting_config.stub New broadcasting config stub defining Reverb/null connections and env-driven defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@anilcancakir anilcancakir merged commit 18fd905 into master Apr 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants